/**
 * Copyright &copy; 2016-2017 <a href="https://www.lczyfz.com">联创智云</a> All rights reserved.
 */
package com.lczyfz.campusinfo.modules.campusinfoeducation.entity;

import org.hibernate.validator.constraints.Length;
import com.lczyfz.campusinfo.modules.sys.entity.User;

import com.lczyfz.campusinfo.common.persistence.DataEntity;

/**
 * 考研信息管理Entity
 * @author yt
 * @version 2017-10-18
 */
public class CampusinfoPubmed extends DataEntity<CampusinfoPubmed> {

    private static final long serialVersionUID = 1L;
    private String schoolid;        // 报考学校
    private String collegeid;        // 报考学院
    private String majorid;        // 报考专业
    private String payment;       // 金额
    private String paymentMethod;        // 支付方式
    private String paymentPlace;        // 缴费地点
    private User user;        // 归属用户
    private String schoolname;     //学校名称
    private String collegename;    //学院名称
    private String majorname;      //专业名称

    public CampusinfoPubmed() {
        super();
    }

    public CampusinfoPubmed(String id) {
        super(id);
    }

    public String getPayment() {
        return payment;
    }

    public void setPayment(String payment) {
        this.payment = payment;
    }

    public String getSchoolname() {
        return schoolname;
    }

    public void setSchoolname(String schoolname) {
        this.schoolname = schoolname;
    }

    public String getCollegename() {
        return collegename;
    }

    public void setCollegename(String collegename) {
        this.collegename = collegename;
    }

    public String getMajorname() {
        return majorname;
    }

    public void setMajorname(String majorname) {
        this.majorname = majorname;
    }

    @Length(min = 1, max = 64, message = "报考学校长度必须介于 1 和 64 之间")
    public String getSchoolid() {
        return schoolid;
    }

    public void setSchoolid(String schoolid) {
        this.schoolid = schoolid;
    }

    @Length(min = 1, max = 64, message = "报考学院长度必须介于 1 和 64 之间")
    public String getCollegeid() {
        return collegeid;
    }

    public void setCollegeid(String collegeid) {
        this.collegeid = collegeid;
    }

    @Length(min = 1, max = 64, message = "报考专业长度必须介于 1 和 64 之间")
    public String getMajorid() {
        return majorid;
    }

    public void setMajorid(String majorid) {
        this.majorid = majorid;
    }

    @Length(min = 0, max = 64, message = "支付方式长度必须介于 0 和 64 之间")
    public String getPaymentMethod() {
        return paymentMethod;
    }

    public void setPaymentMethod(String paymentMethod) {
        this.paymentMethod = paymentMethod;
    }

    @Length(min = 0, max = 255, message = "缴费地点长度必须介于 0 和 255 之间")
    public String getPaymentPlace() {
        return paymentPlace;
    }

    public void setPaymentPlace(String paymentPlace) {
        this.paymentPlace = paymentPlace;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

}